import { ajaxPostBack, ajaxPost } from '@/utils/data/request'

// 列表
export function list(params: any) {
    return ajaxPostBack("kq-gz-date/date-list", params, { cookies: ['yard_sn'] })
}

// 创建
export function add(params: any) {
    return ajaxPost("kq-gz-date/date-create", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 编辑
export function edit(params: any) {
    return ajaxPost("kq-gz-date/date-edit", params, { successMessage: true, cookies: ['yard_sn'] })
}
// 删除
export function del({ date_sn }: any) {
    return ajaxPost("kq-gz-date/date-delete", { date_sn }, { successMessage: true, cookies: ['yard_sn'] })
}
